package com.yellowpage.ca.service;

import java.util.List;
import java.util.Map;

import com.yellowpage.white.service.BaseService;

import com.yellowpage.ca.data.Dictionary;

/**
 * 字典表查询Service
 * 
 * @author 黄敏华
 * 
 */
public interface DictionaryService extends BaseService {

	/* white generate Method */
	public Dictionary getDictionary(Long id);

	public List<Dictionary> getAllDictionary();

	/**
	 * 取出属于dictType的字典项
	 * 
	 * @param dictType
	 *            类别
	 * @return 属于dictType的字典项
	 */
	public List<Dictionary> getByDictType(String dictType);

	/**
	 * 取出所有字典用Map封装，以类别为key，Dictionary对象列表为value
	 * 
	 * @return 所有字典用Map封装，以类别为key，Dictionary对象列表为value
	 */
	public Map<String, List<Dictionary>> getDictMap();

	public Dictionary getByDictValueAndDictType(String dictValue,
			String dictType);
}
